﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RVEAd.Forms
{

    public enum ReportType
    {
        DailyReport
    }

    public partial class FormReportViewer : Form
    {
        public FormReportViewer()
        {
            InitializeComponent();
        }

        public void InitReport(DataTable datasource, string datasourceName, string lunaHeader)
        {
            

            this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource(datasourceName, datasource));
            this.reportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WinForms.ReportParameter("LunaHeader", lunaHeader));

            this.reportViewer1.RefreshReport();
        }

        private void FormReportViewer_Load(object sender, EventArgs e)
        {
            this.reportViewer1.RefreshReport();
        }
    }
}
